Method of overnight closed-loop insulin delivery with model predictive control and glucose measurement error model

ABSTRACT

A closed-loop method for insulin infusion overnight uses a model predictive control algorithm (“MPC”). Used with the MPC is a glucose measurement error model which was derived from actual glucose sensor error data. That sensor error data included both a sensor artifacts component, including dropouts, and a persistent error component, including calibration error, all of which was obtained experimentally from living subjects. The MPC algorithm advised on insulin infusion every fifteen minutes. Sensor glucose input to the MPC was obtained by combining model-calculated, noise-free interstitial glucose with experimentally-derived transient and persistent sensor artifacts associated with the FreeStyle Navigator® Continuous Glucose Monitor System (“FSN”). The incidence of severe and significant hypoglycemia reduced 2300- and 200-fold, respectively, during simulated overnight closed-loop control with the MPC algorithm using the glucose measurement error model suggesting that the continuous glucose monitoring technologies facilitate safe closed-loop insulin delivery.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a division of U.S. application Ser. No. 12/751,668 filed Mar. 31, 2010, which is a non-provisional application that claims the benefit of U.S. application Nos. 61/165,467, filed Mar. 31, 2009; and 61/173,133, filed Apr. 27, 2009; and 61/248,353, filed Oct. 2, 2009, all of which are incorporated herein by reference in their entireties.

BACKGROUND

The invention is generally directed to an integrated system of blood glucose level detection and use of that information in setting insulin delivery parameters, and more particularly, to the use of actual sensor data in characterizing a sensor for use in performing pre-clinical closed-loop trial studies in silico.

Diabetes is a metabolic disorder that afflicts tens of millions of people throughout the world. Diabetes results from the inability of the body to properly utilize and metabolize carbohydrates, particularly glucose. Normally, the finely-tuned balance between glucose in the blood and glucose in bodily tissue cells is maintained by insulin, a hormone produced by the pancreas which controls, among other things, the transfer of glucose from blood into body tissue cells. Upsetting this balance causes many complications and pathologies including heart disease, coronary and peripheral artery sclerosis, peripheral neuropathies, retinal damage, cataracts, hypertension, coma, and death from hypoglycemic shock.

In patients with insulin-dependent diabetes, the symptoms of the disease can be controlled by administering additional insulin (or other agents that have similar effects) by injection or by external or implantable insulin pumps. The “correct” insulin dosage is a function of the level of glucose in the blood. Ideally, insulin administration should be continuously readjusted in response to changes in blood glucose level. In diabetes management, “insulin” instructs the body's cells to take in glucose from the blood. “Glucagon” acts opposite to insulin, and causes the liver to release glucose into the blood stream. The “basal rate” is the rate of continuous supply of insulin provided by an insulin delivery device (pump). The “bolus” is the specific amount of insulin that is given to raise blood concentration of the insulin to an effective level when needed (as opposed to continuous).

Presently, systems are available for continuously monitoring blood glucose levels by implanting a glucose sensitive probe into the patient. Such probes measure various properties of blood or other tissues, including optical absorption, electrochemical potential, and enzymatic products. The output of such sensors can be communicated to a hand held device that is used to calculate an appropriate dosage of insulin to be delivered into the blood stream in view of several factors, such as a patient's present glucose level, insulin usage rate, carbohydrates consumed or to be consumed, and exercise, among others. These calculations can then be used to control a pump that delivers the insulin, either at a controlled basal rate, or as a bolus. When provided as an integrated system, the continuous glucose monitor, controller, and pump work together to provide continuous glucose monitoring and insulin pump control.

Such systems at present require intervention by a patient to calculate and control the amount of insulin to be delivered. However, there may be periods when the patient is not able to adjust insulin delivery. For example, when the patient is sleeping, he or she cannot intervene in the delivery of insulin, yet control of a patient's glucose level is still necessary. A system capable of integrating and automating the functions of glucose monitoring and controlled insulin delivery would be useful in assisting patients in maintaining their glucose levels, especially during periods of the day when they are unable to intervene.

Since the year 2000, at least five continuous or semi-continuous glucose monitors have received regulatory approval.¹ In combination with continuous subcutaneous insulin infusion (“CSII”),² these devices have promoted research toward closed-loop systems, which deliver insulin according to real-time needs, as opposed to open-loop systems which lack the real-time responsiveness to changing glucose levels. A closed-loop system, also called the “artificial pancreas,” consists of three components: a glucose monitoring device such as a continuous glucose monitor (“CGM”) that measures subcutaneous glucose concentration (“SC”); a titrating algorithm to compute the amount of analyte such as insulin and/or glucagon to be delivered; and one or more analyte pumps to deliver computed analyte doses subcutaneously. So far, only a few prototypes have been developed, and testing has been confined to clinical settings.³⁻⁸ However, an aggressive concerted effort promises accelerated progress toward home testing of closed-loop systems.

The development, evaluation, and testing of closed-loop systems are time-consuming, costly, and confounded by ethical and regulatory issues. Apart from early stage testing in animals such as the dog^(9,10) or the swine,¹¹ testing in the computer (virtual) environment, also termed in silico testing, is the only other alternative to evaluate and optimize control algorithms outside human studies. Chassin and colleagues have developed a simulation environment and testing methodologyl¹² using a glucoregulatory model developed in a multitracer study¹³ and evaluated a glucose controller developed within the Adicol Project.¹⁴ Another simulator has been reported by Cobelli and associates,¹⁵ building on model-independent quantification of glucose fluxes occurring during a meal.¹⁶ The latter simulator has been accepted by the U.S. Food and Drug Administration to replace animal testing. Patek and coworkers provided guidelines for preclinical testing of control algorithms.¹⁷

However, such simulations have used mathematical models of glucose sensors in which random data is used for simulating errors of the sensor. Random number generators are used to simulate random errors of such sensors based on noise of the sensor. Such data are therefore not based on the actual performance of any particular sensor and are likely to have a significant level of inaccuracy.

Closed-loop systems may revolutionize management of type 1 diabetes mellitus (“T1DM”), but their introduction is likely to be gradual, starting from simpler applications such as hypoglycemia prevention or overnight glucose control and progressing to more complex approaches such as twenty-four hours per day/seven days per week (24/7) glucose control.⁸ The main reason for gradual deployment is the uncertain risk of hypoglycemia and hyperglycemia, which may arise due to (1) intrinsic overdosing and underdosing of insulin by a control algorithm, and (2) persistent and transient differences between plasma glucose (“PG”) and sensor glucose (“SG”). The transient differences could be either of physiological origin (SC glucose kinetics) or due to a temporal CGM device artifact. The persistent differences result from the CGM calibration error (“CE”). The relatively slow absorption of subcutaneously administered “rapid-acting” insulin analogues and other system imperfections such as pump delivery errors may exacerbate the hypoglycemia and hyperglycemia risks.

Hence, those of skill in the art have recognized a need for an integrated, automated system combining continuous glucose monitoring and controlled insulin delivery. Such a system would include various features to insure the accuracy of the glucose monitor and to protect the user from either under- or over-dosage of insulin. The system would include various functions for improving the accuracy, usability, control, and safety of the system, including a variety of alarms which could be set by a user or a technician to avoid false alarms while ensuring adequate sensitivity to protect the user. Those skilled in the art have also recognized a need for a more accurate glucose measurement error model for increasing the accuracy of closed-loop systems. The present invention fulfills these, and other needs.

SUMMARY OF THE INVENTION

Briefly and in general terms, the present invention is directed to a system for the delivery of insulin to a patient, the system comprising a glucose sensor configured to provide a sensor glucose measurement signal representative of sensed glucose, an insulin delivery device configured to deliver insulin to a patient in response to control signals, and a controller programmed to receive the sensor glucose measurement signal and to provide a delivery control signal to the delivery device as a function of the received sensor glucose measurement signal in accordance with a control model and a glucose measurement error model, wherein the glucose measurement error model is derived from actual glucose sensor measurement data.

In more detailed aspects, the glucose measurement error model is derived solely from actual glucose sensor measurement data. In another aspect, the glucose measurement error model is derived solely from actual glucose sensor error data, excluding sensor noise data. In another aspect, the glucose measurement error model is derived solely from actual glucose sensor measurement data to the exclusion of randomly-generated variable data. In yet a further aspect, the glucose measurement error model is derived solely from a fixed time history of error data from actual use of a glucose sensor of the same type as the sensor of the system. And in yet another aspect, the glucose measurement error model is derived from actual glucose sensor measurement data from a glucose sensor of the same type as the sensor of the system.

In more detailed aspects, the control model comprises a model predictive control and the controller is also programmed to provide the delivery control signals to the delivery device as a function of a model predictive control. The glucose measurement error model is derived from calibration error of the glucose sensor, which comprises the difference between a plasma glucose level and the sensor glucose level signal of the glucose sensor. Further, the glucose measurement error model is derived from a glucose sensor dropout reading.

In other aspects, the controller is further programmed to recalibrate the system when the difference between the received sensor glucose level signal and a plasma glucose level exceeds a predetermined level. The delivery control signal is also a function of the weight of a patient, a total daily insulin dose, and a basal insulin profile, and wherein the controller is also programmed to calculate from the control model an accepted value, the controller is also programmed to calculate from the glucose level signal an inferred value, the controller is also programmed to forecast a future plasma glucose level excursion based on the accepted value and inferred value, and the controller is also programmed to adjust the delivery control signal in accordance with the forecast future plasma glucose level excursion. In more detailed aspects, the accepted value comprises an insulin sensitivity of the patient, a glucose distribution volume, and an insulin distribution volume, and the inferred value comprises glucose flux and a carbohydrate bioavailability.

In yet further aspects, the controller is also programmed to adjust a value of the delivery control signal in accordance with a safety check. Such safety check comprises at least one of imposing a maximum infusion rate related to a basal rate depending on a current sensor glucose level, time since a previous meal, and carbohydrate content of a meal, shutting off insulin delivery at a predetermined low sensor glucose value, reducing insulin delivery when sensor glucose is decreasing rapidly, and capping the insulin infusion to a pre-programmed basal rate if an insulin delivery pump occlusion is inferred.

In another aspect, the glucose sensor, the insulin delivery device, and the controller are virtual devices, each being programmed for in silico testing of a system for delivery of insulin to a virtual patient.

The invention is also directed to a method for delivering insulin to a patient, the method comprising sensing a glucose level and providing a glucose measurement signal representative of the sensed glucose, providing a control signal as a function of the glucose measurement signal in accordance with a control model and a glucose measurement error model, wherein the glucose measurement error model is derived from actual/experimental glucose sensor data, and delivering insulin in response to the control signal. In a more detailed aspect, providing the control signal further comprises producing the control signal in accordance with a model predictive control.

In more detailed aspects, the glucose measurement error model used in the method is derived solely from actual glucose sensor measurement data. In another aspect, the glucose measurement error model is derived solely from actual glucose sensor error data, excluding sensor noise data. In another aspect, the glucose measurement error model is derived solely from actual glucose sensor measurement data to the exclusion of randomly-generated variable data. In yet a further aspect, the glucose measurement error model is derived solely from a fixed time history of error data from actual use of a glucose sensor of the same type as the sensor of the system. And in yet another aspect, the glucose measurement error model is derived from actual glucose sensor measurement data from a glucose sensor of the same type as the sensor of the system.

Further, more detailed aspects include determining a calibration error of a glucose sensor from actual sensor data, based on the difference between a plasma glucose level and the glucose level signal and deriving the glucose measurement error model therefrom. Deriving the glucose measurement error model further comprises determining a glucose sensor dropout reading from actual sensor data and deriving the glucose measurement error model therefrom.

Other aspects include providing the control signal as a function of the weight of a patient, a total daily insulin dose, and a basal insulin profile, the method further comprising determining, based on the control model, at least one accepted value, calculating from the glucose level signal at least one inferred value, adjusting the control model in accordance with the accepted value and inferred value, and forecasting a future plasma glucose level excursion based on the control model. Determining the accepted value comprises basing the determination on an insulin sensitivity of the patient, a glucose distribution volume, and an insulin distribution volume. Calculating the inferred value comprises calculating the inferred value also from glucose flux and a carbohydrate bioavailability.

In yet further aspects, the method further comprises adjusting a value of the control signal in accordance with a safety check, comprising at least one of imposing a maximum infusion rate related to a basal rate depending on a current sensor glucose level, time since a previous meal, and carbohydrate content of a meal, shutting off insulin delivery at a sensor glucose of 77 mg/dl, reducing insulin delivery when sensor glucose is decreasing rapidly, and capping the insulin infusion to a pre-programmed basal rate if an insulin delivery pump occlusion is inferred.

In another aspect, the sensing, providing a control signal, and delivering insulin are performed virtually, each occurring for in silico testing of a method for delivery of insulin to a virtual patient.

The features and advantages of the invention will be more readily understood from the following detailed description that should be read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A presents a block diagram of a closed-loop insulin infusion system using a model predictive controller;

FIG. 1B presents a block diagram of a closed-loop insulin infusion system using a glucose measurement error model in accordance with aspects of the invention;

FIG. 2 shows simulated sensor glucose traces from the four quartiles of dropout severity alongside the underlying plasma glucose trace. Q1 represents negligible dropouts while Q4 represents the most severe dropouts;

FIG. 3 provides a protocol of a simulated overnight closed-loop study showing a simulated study of fifteen hours duration, starting at 17:00 and ending at 08:00 the next day;

FIG. 4 shows a sample simulation of overnight closed-loop control adopting a +20% CGM system calibration error and a dropout trace from quartile two. The graph presents plasma glucose, interstitial glucose, sensor glucose, and insulin infusion;

FIG. 5 is a graph showing plasma glucose and sensor glucose (median [interquartile range]; N=720 at each level) during simulated overnight closed-loop studies at different levels of CGM system calibration errors. The CGM system calibration error probability distribution function is also shown;

FIG. 6 is a chart showing time spent in the glucose target range (80 to 145 mg/dl) as quantified using plasma glucose and sensor glucose (medial [interquartile range]; N=720 at each level) during simulated overnight closed-loop studies at different levels of CGM system calibration error. The CGM system calibration error distribution function is also shown;

FIG. 7 presents the incidence of severe hypoglycemia (≦36 mg/dl) twenty minutes or shorter and longer than twenty minutes during simulated overnight closed-loop studies as a function of CGM system calibration error. At each level of CGM system calibration error, 720 simulations were run; the occurrence of one event in 720 simulations corresponds to around fifty events per one-hundred person years;

FIG. 8 presents the incidence of significant hypoglycemia (≦45 mg/dl) sixty minutes or shorter and longer than sixty minutes during simulated overnight closed-loop studies as a function of CGM system calibration error. At each level of CGM system calibration error, 720 simulations were run; the occurrence of one event in 720 simulations corresponds to around fifty events per one-hundred person years;

FIG. 9 plots the incidence of significant hyperglycemia (>300 mg/dl) sixty minutes or shorter and longer than sixty minutes during simulated overnight closed-loop studies as a function of CGM system calibration error. At each level of CGM system calibration error, 720 simulations were run; the occurrence of one event in 720 simulations corresponds to around fifty events per one-hundred person years; and

FIG. 10 provides a sample simulation showing hypoglycemia due to prandial insulin overdosing.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

Referring now in more detail to the exemplary drawings for purposes of illustrating embodiments of the invention, wherein like reference numerals designate corresponding or like elements among the several views, there is shown in FIG. 1A a basic block diagram of a closed-loop system 20 for continuous glucose monitoring and for continuous subcutaneous insulin infusion using a model predictive controller 26. The patient receives exogenous inputs, such as meals. The patient's glucose is measured 24, evaluated by the model predictive controller (MPC) and is used by the MPC to control a delivery device, such as a pump 28, to deliver medication to the patient to control blood glucose.

Glucose Control Algorithm

Referring now to FIG. 1B, a control algorithm was used based on the model predictive control (“MPC”) paradigm¹⁸ to deliver insulin in a closed-loop fashion. Interstitial glucose measurement occurs and every fifteen minutes, simulated real-time sensor glucose (“SG”) 24 was fed into the MPC controller 26, which calculated subcutaneous glucose concentration (“SC”) insulin infusion for the insulin pump 28. A dose calculator 45 is included in this embodiment. The MPC controller 26 adopts a compartment model of glucose kinetics describing the effect of (1) SC rapid-acting insulin analogue and (2) the carbohydrate (“CHO”) content of meals on SG excursions. A list of abbreviations used in the specification and drawings and the items they stand for is included at the end of the specification.

The glucoregulatory model is initialized using a subject's weight, total daily insulin dose, and the basal insulin profile (patient parameters) 40. These values feed into estimates of temporal insulin sensitivity and glucose and insulin distribution volumes. Using a Kalman filter 46 approach, real-time SG measurements are used to update two model parameters: (1) a glucose flux quantifying model misspecification; and (2) CHO bioavailability. Several competing models differing in the rate of SC insulin absorption and action and the CHO absorption profile are run in parallel. A computationally efficient, stochastic-based approach is used to derive a combined control model 30 that best explains observed SG excursions.¹⁹

Following estimation of model parameters, the combined control model 30 is used to forecast plasma glucose (“PG”) 42 excursions over a two and one-half hour prediction horizon. A sequence of standard deviation (“SD”) insulin infusion rates is determined, which approximates the desired PG trajectory, characterized by a slow decline from hyperglycemia and a rapid recovery from hypoglycemia to target glucose, which is set at minimum to 104 mg/dl but is elevated up to 132 mg/dl to take into account inaccuracies of model-based predictions. The first infusion rate from the sequence of SC insulin infusion rates is delivered by the insulin pump 28 subject to safety checks 44, which can reduce the infusion rate to prevent insulin overdosing. These checks include: (1) imposing a maximum infusion rate of two to five times the pre-programmed basal rate, depending on the current SG level, the time since the previous meal(s), and CHO content of meal(s); (2) shutting off insulin delivery at a SG of 77 mg/dl; (3) reducing insulin delivery when SG is decreasing rapidly; and (iv) capping the insulin infusion to the preprogrammed basal rate if a pump occlusion is inferred by the MPC 26.²²

For the purposes of the present study, MPC algorithm Version 0.02.02 was used. Earlier versions of the algorithm were used in clinical studies for overnight closed-loop insulin delivery in children and adolescents with T1DM.²⁰⁻²²

Simulation Environment

A simulation environment designed to support the development of closed-loop insulin delivery systems was used.¹² The simulation environment is flexible and allows the following components to be defined: a model of glucose regulation, an experimental protocol, a glucose sensing model, an insulin pump model, and outcome metrics. A model of glucose kinetics and insulin action described by Hovorka and colleagues.^(14,23) was adopted. Other submodels include the model of SC insulin kinetics, the model of gut absorption, and the model of interstitial glucose (IG) kinetics.^(23,24)

The simulator includes eighteen synthetic subjects (virtual patients) with T1DM defined by eighteen parameter sets, representing the virtual T1DM population. A subset of parameters were estimated from experimental data collected in subjects with T1DM,¹⁴ and the remaining parameters were drawn from informed probability distributions.^(13,23) The inter-subject variability is addressed through assigning a unique set of parameter values to each individual synthetic subject. The subjects vary, for instance, in their insulin sensitivity to glucose distribution, disposal, and endogenous glucose production.^(14,23) The virtual subjects are characterized by their daily insulin requirements (0.35±0.14 U/day/kg), insulin-to-CHO ratio (1.7±1.0 U/10 g CHO), and body weight (74.9±14.4 kg). Intra-individual variability of the gluco-regulatory system is represented by superimposing oscillations on selected model parameters or adding random inter-occasion variability to parameter values. Sinusoidal oscillations with an amplitude of 5% and a three-hour period were superimposed on nominal values of most model parameters. Each parameter had a different phase generated randomly from a uniform distribution U [0.3 h]. Bioavailability of ingested CHO is characterized by 20% inter-occasion variability.

For the purposes of the present study, the glucose measurement error model 48 was derived from experimental data. The SG concentration was obtained as SG(t)=IG(t)×(1+CE)+D(t) where IG(t) is noise-free interstitial glucose (“IG”) concentration calculated by the gluco-regulatory model and normalized such that, at the steady-state, it is identical to PG; CE is FreeStyle Navigator® Continuous Glucose Monitor System (“FSN”) calibration error (“CE”), and D(t) is the dropout trace of the FSN. The pump 28 delivery error model was assumed zero mean, uncorrelated, with a constant 5% coefficient of variation for the continuous insulin infusion and the insulin bolus. The simulation environment is implemented in Matlab® (The Mathworks, Natick, Mass.).

FreeStyle Navigator CGM System—Dropouts

The FreeStyle Navigator® Continuous Glucose Monitor system with TRUstart algorithm (Abbott Diabetes Care, Alameda, Calif.) was used for the present study. The FSN system occasionally exhibits a nonzero-mean signal artifact referred to here as “dropout,” where certain mechanical perturbation of the sensor results in a momentarily attenuated glucose concentration.²⁵

Dropouts were quantified using data from a study where fifty-eight living subjects with T1DM had simultaneously worn two sensors over the course of up to five days.²⁶ Values from the two sensors worn simultaneously on each subject were paired every minute. The point-wise difference between the paired glucose readings was computed. To account for residual CE, a segment's point-wise difference was normalized by subtracting the median bias of the segment.

From each pair, only time segments that overlap the night-time period were used, resulting in 285 night time segments. Segments with insufficient data, either due to a sensor starting or sending in the middle of the night time session or due to missing data, were excluded. In total, ninety-one segments were excluded because they contained less than 840 one-minute data points over the 900 minutes night-time session span. As a result, 194 night-time segments were available for simulation purposes.

The mean absolute difference in each segment was used to quantify dropout severity, and the 194 night-time sessions were separated into four quartiles. Ten dropout segments were chosen randomly from each quartile and used in simulation studies. The simulation environment adds the selected dropout segment onto the modeled IG concentration. Simulated CGM traces incorporating dropout data from each quartile are shown in FIG. 2.

FIG. 2 presents simulated sensor glucose traces from the four quartiles of dropout severity alongside the underlying plasma glucose trace. The first quartile Q1 represents negligible dropouts while the fourth quartile Q4 represents the most severe dropouts.

FreeStyle Navigator CGM System—Calibration Error

The FreeStyle Navigator System calibration error (“CE”) is defined as CE=(SG−IG)/IG. In these simulations, therefore, a +5% CE means that the reported SG value is consistently 1.05 times higher than expected for a given IG concentration.

The FSN System is designed for five-day wear, with calibrations nominally scheduled at 1, 2, 10, 24, and 72 hours after sensor insertion. For the present study, a morning CGM sensor insertion is assumed for the night-time only closed-loop control. Thus, each night time, closed-loop session is assumed not to include a scheduled calibration, allowing CE to remain constant for the duration of the night session.

One-hundred and sixteen (116) insertions used to generate dropout signals in addition to 469 insertions from other studies with living subjects were used to generate a distribution of the FSN CE. The sensor data set comprised 248 living subjects with T1DM or type 2 diabetes mellitus (“T2DM”) and were a combination of general sensor wear and in-clinic wear that included periods of specific glucose and insulin challenges.

As IG and PG are assumed to be identical at the steady state, CE can be approximated using an alternative definition: CE=(SG−PG)/PG. The CE for a single calibration session was calculated from pairs of SG-reference glucose values where all the SG values were derived from a single calibration and reference glucose used for calibration were excluded from the calculations. Unlike the calculation of dropouts, only reference glucose values measured from finger sticks using the inbuilt blood glucose meter were used. In addition, the real-time calibration of SG values used the FSN system with TRUstart algorithm.

Excluding calibration sessions containing less than ten SG-reference glucose pairs, 585 insertions yielded 1421 calibration sessions. The CE for each session was computed by comparing the median value of the relative difference between SG and reference glucose, and 1421 FSN CEs were generated using 35,200 SG-reference glucose pairs, yielding an average of 25 pairs for every calibration session.

Protocol of Simulation Studies

As shown in FIG. 3, the simulated study was fifteen hours long, starting at 17:00 and ending at 08:00 the next day. Plasma glucose at the start of the simulated study was drawn from a log-normal distribution, with a mean of 126 mg/dl constrained to a range from 72 to 180 mg/dl. A meal consisting of 50 g CHO was planned at 18:00 and was accompanied by a prandial insulin bolus. The insulin infusion rate between 17:00 and 21:00 was calculated using the simulation model of a particular virtual subject assuming steady-state conditions at the start of the experiment. At 21:00, the closed-loop glucose control algorithm took over the insulin delivery. The insulin infusion rate was calculated every fifteen minutes on the basis of CGM values, which included the dropout and CE components. Closed-loop control continued until the end of the simulated experiment at 08:00. Rescue CHOs (15 g CHO) were administered at SG values 63 mg/dl (3.5 mmol/liter) or below when confirmed by a PG value of 63 mg/dl or below, simulating a confirmatory finger stick glucose measurement. Correction insulin boluses were not administered at hyperglycemia.

The simulation studies were run in batches differing by the level of FSN CE. In total, 25 levels of FSN CEs ranging from −80% to +100% were simulated. The range covering 0% to 60% error was subdivided into 5% steps. The remaining range was spaced 10% apart. Each of the eighteen virtual subjects with T1DM was associated with one of forty randomly selected CGM dropout traces (ten traces from each of the four quartiles of increasing severity). This resulted in 720 different combinations and formed a single simulation batch. Each batch was run with all 25 levels of FSN CE, totaling 18,000 simulated overnight studies.

Open Loop Studies

Within the Artificial Pancreas Project at Cambridge (“APCam”), seventeen children and adolescents with T1DM treated by CSII for at least three months participated in the APCam01 study (monitoring study) and APCam03 (exercise study) conducted at the Wellcome Trust Clinical Research Centre, Addenbrooke's Hospital, University of Cambridge, UK. Informed consent was obtained from all study participants or their caregivers. The APCam01²⁰ and APCam03²² clinical studies were originally designed to compare overnight closed-loop control against the standard CSII treatment. In the present analysis, only results from the CSII investigations are reported. The study protocols were approved by the Cambridgeshire 3 Ethics Committee. The subjects' demographic data are shown in TABLE 1. Four subjects participated in both studies.

In APCam01, on subject's arrival at the Clinical Research Facility at 16:00, a sampling cannula was inserted in a vein of an arm and kept patent with sodium chloride. At 18:00, the subjects ate a self-selected meal (87±23 g CHO) accompanied by prandial insulin (9±5 U; 31%±9% of total daily bolus amount) calculated according to the individual insulin-to-CHO ratio and supplemented by correction dose. Plasma glucose was determined every fifteen minutes from 17:00 to 08:00 the next day. At least two weeks before the first study, the CSII treatment was optimized by a healthcare professional by retrospectively analyzing seventy-two hours of nonreal-time SG data.

In APCam03, at least one week before the study, the subjects attended the Clinical Research Facility and a ramped treadmill protocol was used for the estimation of the peak VO₂ as an indicator of the maximum exercise effort. As used herein “VO₂” refers to the maximal oxygen uptake, which is widely accepted as a measure of cardiovascular fitness and maximal aerobic power. Continuous recording of VO₂ with breath-by-breath sampling was taken during the treadmill test and for two minutes during recovery after exercise test termination. Heart rate monitoring was maintained. On the study day, the subjects arrived at 15:00 at the Clinical Research Facility. A sampling cannula was inserted and kept patent with sodium chloride. At 16:00, subjects had a light meal chosen from a list of standardized snacks (45±13 g CHO, 12±3 g fat, 14±4 g protein) accompanied by prandial bolus (4±2 U). The subject exercised at 55% VO₂ max on the treadmill from 18:00 until 18:45, with a rest from 18:20 to 18:25. During exercise, basal insulin was left unmodified or was reduced according to individual guidelines. During the night, the subject's standard insulin pump settings were applied. Plasma glucose was determined every 15 min from 16:00 to 08:00 the next day. If PG dropped below 36 mg/dl, GlucoGel© (BBI Healthcare, UK) was given and the study night terminated.

Data Analysis

Severe and significant hypoglycemia was declared at PG≦36 mg/dl (2.0 mmol/liter) and ≦45 mg/dl (2.5 mmol/liter), respectively. These are levels when cognitive behavioral defenses are compromised.²⁷ Significant hyperglycemia was declared at PG≧300 mg/dl (16.7 mmol/liter).

The empirical probability distribution function of FSN CE was calculated from the 1421 calibration sessions discussed above. During simulated closed-loop studies, occurrence and duration of hypoglycemia and hyperglycemia based on the simulated PG trace were recorded from 21:00 to 008:00. The probability of hypoglycemia and hyperglycemia events occurring overnight at a given FSN CE is obtained as a product of the probability, c_(i), of the given FSN CE and the probability of overnight hypoglycemia and hyperglycemia, h_(i), at the given FSN CE. The overall event probability P is obtained as the sum of these products over the 25 levels of FSN CE, i.e., P=Σc_(i)h_(i). For APCam01 and APCam03 studies, the overall event probability is obtained as the number of hypoglycemia and hyperglycemia events divided by the number of overnight stays. The overall incidence is obtained as reciprocal to the overall event probability.

During simulated closed-loop studies, mean PG, mean SG, and time-in-target 80-145 mg/dl were calculated between 20:00 and 08:00 to assess the performance of the MPC algorithm at different levels of FSN CE. Values are shown as mean±standard deviation unless stated otherwise.

Simulated Closed-Loop Studies

A sample simulation study with +20% FSN CE using dropout trace from quartile two is shown in FIG. 4. Overall, 18,000 simulation studies were performed; 720 simulation studies were run for each of the 25 levels of FSN CE. During simulations, the MPC algorithm was unaware of FSN CE and the extent of the CGM dropout.

FIG. 5 shows PG and SG values obtained simultaneously during simulation studies at FSN CEs ranging from −80% to +100%. As expected, increasing levels of FSN CE result in progressively lower median PG. The MPC algorithm steps up insulin delivery to limit the increase in SG, unaware of progressively increasing gap between sensor and PG. Employing the SG values, the MPC algorithm performs less efficiently at high FSN CE (see FIG. 6, which plots time-in-target values.) However, employing the PG values, the MPC algorithm achieves 60% or higher time-in-target for FSN CE ranging from −20% to +100%.

FIGS. 7 and 8 show the incidence of severe (PG≦36 mg/dl) and significant (PG≦45 mg/dl) hypoglycemia across FSN CE. Severe hypoglycemia did not occur at FSN CE of 40% or lower. Significant hypoglycemia did not occur at FSN CE of 5% or lower.

TABLE 2 breaks down severe hypoglycemia events according to their duration, providing more detailed information. The longest duration of severe and significant hypoglycemia occurred at the highest 100% FSN CE, lasting for 79 and 178 min, respectively.

FIG. 9 plots the incidence of significant hyperglycemia (PG≧300 mg/dl) for the different levels of FSN CE. Significant hyperglycemia lasting sixty minutes or less was present at most levels of FSN CE, while events lasting more than sixty minutes occurred when FSN CE was below −40% The longest duration of significant hyperglycemia occurred at the −80% FSN CE, lasting for 455 minutes.

FreeStyle Navigator Calibration Error Distribution

The probability distribution of FSN CE generated from 1421 calibration sessions is shown in FIG. 5 and is replicated in FIG. 6. Approximately three-fourths (¾) of the distribution resides within the −10% to +10% range of FSN CE; 35 out of 1421 (2.5% calibration sessions had FSN CE of 30% or higher. Approximately the same number of sessions (37 out of 1421) had a CE of −30% or lower. FIG. 5 presents plasma glucose and SG (median [interquartile range]; N=720 at each level) during simulated overnight closed-loop studies at different levels of FSN CE. The FSN CE probability distribution function is also shown. FIG. 6 presents time spent in the glucose target range (80 to 145 mg/dl) as quantified using PG and SG (median [interquartile range]; N=720 at each level) during simulated overnight closed-loop studies at different levels of FSN CE. The FSN CE probability distribution function is also shown.

FIG. 7 presents the incidence of severe hypoglycemia (≦36 mg/dl) 20 min or shorter and longer than 20 min during simulated overnight closed-loop studies as a function of FSN CE. At each level of FSN CE, 720 simulations were run; occurrence of one event in 720 simulations corresponds to around 50 events per 100 person years.

FIG. 8 presents the incidence of significant hypoglycemia (≦45 mg/dl) 60 min or shorter and longer than 60 min during simulated overnight closed-loop studies as a function of FSN CE. At each level of FSN CE, 720 simulations were run; occurrence of one event in 720 simulations corresponds to around 50 events per 100 person years.

Open-Loop Studies

During APCam01 and APCam03 studies, PG at 20:00 was 207±97 mg/dl. Average overnight PG from 20:00 to 08:00 was 146±65 mg/dl. Time spent in the target glucose range from 20:00 to 08:00 was 40% (18-61%) (median [interquartile range]).

During APCam03, one “severe” hypoglycemic event was observed (PG≦36 mg/dl). The subject was given GlucoGel®, and the study night was terminated; thus the duration of the untreated severe hypoglycemic event cannot be ascertained. Two episodes of “significant” hypoglycemia were observed (PG≦45 mg/dl): one study APCam01 over forty-five minutes in duration and another in APCam03 over seventy-five minutes in duration, preceding the severe hypoglycemic event above.

Overall Incidence of Hypoglycemia and Hyperglycemia

The overall incident of hypoglycemia and hyperglycemia during closed-loop and open-loop studies is shown in TABLE 3.

FIG. 9 presents the incidence of significant hyperglycemia (>300 mg/dl) 60 min or shorter and longer than 60 min during simulated overnight closed-loop studies as a function of FSN CE. At each level of FSN CE, 720 simulations were run; occurrence of one event in 720 simulations corresponds to around 50 events per 100 person years.

Discussion

The present study suggests that overnight closed loop combining an MPC algorithm and the FSN CGM system is expected to reduce the risk of hypoglycemia and hyperglycemia compared to the standard CSII therapy. Overnight closed-loop insulin delivery is expected to reduce the incidence of (1) severe hypoglycemia 2300-fold, (2) significant hypoglycemia 200-fold, and (3) significant hyperglycemia 200-fold.

These reductions are indicative rather than conclusive given the differences in subject populations; the lower incidence of hypoglycemia events, particularly those observed clinically during the CSII treatment; and uncertainties associated with in silico testing. It is important to stress that simulated results need to be verified with clinical data and that efforts should be made to assess true hypoglycemia incidence, which may not be indicated by SG traces alone due to the possible presence of the kinds of persistent and transient sensing errors described. In addition, as average SG levels may be reduced during closed-loop insulin delivery compared to the standard CSII treatment, the presence of transient errors due to dropouts may erroneously suggest an increase in hypoglycemic events, i.e., SG may temporarily drop below the hypoglycemic threshold while PG remains about the threshold.

The incidence calculations are influenced by three main components: 1) the persistent sensing error, 2) the transient sensing error, and 3) insulin misdosing by the control algorithm. In the present study, the assessment of the first two components is based on large observational data sets, providing solid foundations for the incidence calculations. The assessment of the last component is addressed by in silico testing. These simulations are the least strong part of our approach due to limitations of the glucose regulation model but facilitate a rational way to assess performance of a closed-loop system prior to its evaluation in larger clinical studies.

It is argued that the persistent sensing error poses a greater risk of hypoglycemia than the transient sensing error. When SG consistently exceed PG levels, the risk of undetected sustained hypoglycemia increases; for example, a 100% persistent error translates a PG reading of 50 mg/dl into a SG reading of 100 mg/dl. The persistent error reflects primarily the SG CE. The present study suggests that severe hypoglycemia arises only at an FSN CE of 45% and higher with the study-specific MPC algorithm. This represents 0.845% of the calibration segments. Thus the characterization of tails of the distribution of the SG CE is essential for the correct quantification of the hypoglycemia risk, suggesting that risk calculations can only be carried out once large data sets characterizing the performance of any particular CGM system are available.

From a closed-loop control perspective, transient errors such as dropouts could trigger a momentary reduction or cessation of insulin command due to the perceived hypoglycemia event (present or near future). Such a response might increase the risk of hyperglycemia. Closed-loop systems with a strong predictive and/or derivative term might generate a momentarily exaggerated insulin command when a rapid dropout recovery occurs. If PG is already low, then this transient response could increase the risk of hypoglycemia. The effect of dropouts is illustrated in FIG. 2. Four simulated SG traces with different levels of dropout severity are shown alongside the underlying PG measurements.

In the present study, the transient error was obtained by taking the difference of two SG traces and correcting them for CE. Methodologically, this approach overestimates the transient error as, by definition, when subtracting two SG traces, the variances of the two transient errors presented in the component SG traces add up. However, a visual inspection of simultaneously observed SG traces in quartiles two to four indicates that the transient error in one of the two SG traces typically dominates, justifying our pragmatic approach, which preserves important characteristics such as dropout clustering.

Prior investigation of the validity of the predictions made by in silico testing increases the confidence in the incidence calculations. We previously validated the virtual population of 18 subjects with T1DM by simulating a fifteen hour clinical study with an MPC algorithm.²⁸ The protocol of the simulated study reflected the APCam01 study conducted in twelve children and adolescents with T1DM.²⁰ Premeal PG during the simulated study was designed to match that of the real study (177±56 versus 171±67 mg/dl, p=not significant (“NS”); unpaired t test). Sensor glucose at the start of closed-loop control (220±72 versus 191±54 mg/dl, p=NS) and mean overnight SG (137±22 versus 141±25 mg/dl, p=NS) were similar during simulated and real studies. Time spent in the target glucose range 80 to 145 mg/dl was not significantly different at 69% (62-78%) versus 63% (49-78%) (median [interquartile range], p=NS). Kovatchev and associates' low blood glucose index [0.5 (0.2-0.9) versus 0.3 (0.0-1.0), p=NS] and high blood glucose index [3.4 (1.3-6.8) versus 3.7 (0.6-6.8), p=NS]²⁹ were also similar during the real and simulated studies, supporting the validity of glucose predictions at low and high glucose levels.

We further assessed the validity of in silico predictions by simulating open-loop studies. First, optimum prandial and optimum basal insulin to achieve and maintain PG at 108 mg/dl were determined for the eighteen virtual subjects during a fifteen hour simulated study commencing at 17:00, with a 50 g CHO meal planned at 18:00. Then basal insulin was increased by 20% and an identical study design was simulated. Additional simulations were performed, with basal insulin increased by 55% and 85%. These increases in the basal insulin delivery corresponded to differences between the average delivered insulin rate and the average insulin rate preprogrammed on the insulin pump during thirty-three overnight closed-loop studies in young people with T1DM treated by CSII.³⁰ In these thirty-three closed-loop studies, a 20% overestimation of basal insulin was observed in three studies, a 55% overestimation in four studies, and an 85% overestimation in one study.

At the 20% overestimation of basal insulin, the simulations yielded no severe hypoglycemia and one significant hypoglycemia in the eighteen virtual subjects. At the 55% overestimation, five and three hypoglycemia events were observed. At the 85% overestimation, eight and two events occurred. This indicates the incidence of severe hypoglycemia during simulated studies at 1720 per 100 person years, which tallies extremely well with a corresponding incidence of 1739 per 100 person years recorded during “true” open loop studies (see Table 3). The incidence of significant hypoglycemia during simulations was 1044 per 100 person years, which is less but still comparable to that observed experimentally at 3479 per 100 person years; the difference in the incidence rates corresponds to two significant hypoglycemia events over thirty-three nights. Overall, these results suggest that in silico simulations provide acceptable predictions of hypoglycemia incidence during open-loop studies, supporting the validity of in silico predictions during closed-loop studies.

The MPC algorithm used in the present study has important in-built safety features. It uses the pre-programmed insulin infusion rate as an initial estimate of the insulin needed to achieve normoglycemia. If SG increases, the MPC algorithm controller steps up insulin delivery but does so cautiously and at the expense of suboptimal SG levels. This is evident in FIGS. 5 and 6, which demonstrate that, with increasing levels of FSN CE, the mean SG concentration increases and the time-in-target assessed with the use of SG decreases. This design feature of the MPC algorithm reduces the impact of FSN CE on the risk of hypoglycemia.

The simulation study design included a relatively small evening meal compared to the body weight of the virtual subjects. Additionally, pre-meal PG was constrained to levels between 72 and 180 mg/dl. In combination, these two study design aspects limit postprandial hyperglycemia excursions, which are expected to be more pronounced after larger meal sizes and at elevated premeal PG values. Conversely, prandial insulin overdosing due to overestimation of the meal size may result in early postprandial hypoglycemia, which cannot be prevented by closed-loop insulin delivery even if insulin infusion is stopped. Some of the episodes of hypoglycemia observed in the present study were directly attributable to prandial insulin overdosing prior to the start of closed-loop control. An example is shown in FIG. 10, where the insulin overdelivery is confounded by a +30% FSN CE. Hypoglycemia occurred prior to the start of the closed-loop session. Although insulin delivery virtually stopped at the start of closed loop, PG and SG continued to decrease for another thirty minutes. The hypoglycemia event remained undetected, as SG did not reach the hypoglycemia threshold of 63 mg/dl.

The use of CGM alone is expected to reduce the hypoglycemia and hyperglycemia risks as observed in the Juvenile Diabetes Research Foundation CGM trial.³¹ The observed improvements are clinically important but lack the scale offered by the overnight closed-loop approach. However, even the overnight closed-loop approach, the risk of hypoglycemia and hyperglycemia is not eliminated. The duration of significant and severe hypoglycemia during simulation studies is limited to one and three hours, which is slightly less than the two to four hours of SG-documented hypoglycemia that has been reported prior to seizures.

FIG. 10 presents a sample simulation showing hypoglycemia due to prandial insulin overdosing. Prandial insulin accompanied the meal at 18:00. The closed loop started at 21:00. Sensor glucose was obtained using a +30% FSN CE and a dropout trace from quartile two. Hypoglycemia occurred before the start of the closed-loop session and continued to worsen for another thirty minutes after the start of closed loop although insulin delivery was virtually turned off. Hypoglycemia was undetected, as SG did not reach the hypoglycemia threshold of 63 mg/dl. FreeStyle Navigator CE at +30% or higher is estimated to occur 2.5% of the time, assuming no recalibration is performed between scheduled calibrations.

The FSN CE distribution shown in FIGS. 5 and 6 was constructed assuming that only the five FSN scheduled calibrations are performed. If a manual recalibration was performed to rectify excessive CEs that would have been evident when SG was compared against a finger stick reading, the risk of hypoglycemia and hyperglycemia during overnight closed loop could be further reduced.

More detailed information about transient and persistent sensing errors is required to determine if the present results may be transferable to other commercially available CGM systems.³³ Transferability to other control algorithms is uncertain given the wide range of control approaches.

In conclusion, overnight closed loop using an MPC algorithm and real-time glucose sensing by the FSN system may offer a 200-2300-fold reduction of the hypoglycemia and hyperglycemia incidence. This suggests that existing continuous glucose sensing technologies facilitate safe closed-loop insulin delivery, although confirmation in large clinical studies is required.

Abbreviation List:

Abbrev. Stands For: A1C hemoglobin A1C APCam Artificial Pancreas Cambridge BMI body mass index CE calibration error of FreeStyle Navigator System CGM continuous glucose monitoring CHO carbohydrate CL closed loop CSII continuous subcutaneous insulin infusion dl deciliter D(t) dropout trace of FreeStyle Navigator System FSN FreeStyle Navigator Continuous Glucose Monitoring System g grams IG interstitial glucose l liter mg/dl milligrams per deciliter MPC model predictive control NS not significant OL open loop PG plasma glucose SC subcutaneous glucose concentration SD standard deviation SG sensor glucose T1DM type 1 diabetes mellitus T2DM type 2 diabetes mellitus VO₂ Maximal oxygen uptake, which is accepted as a measure of cardiovascular fitness and maximal aerobic power. Also referred to as maximal oxygen consumption, maximal oxygen uptake, or aerobic capacity.

Table 1 provides demographic data of young subjects with type 1 diabetes mellitus participating in studies;

Table 2 shows the incidence of severe hypoglycemia per 100 person years during simulated overnight closed-loop studies at increasing levels of CGM system calibration error;

Table 3 shows the incidence of hypoglycemia and hyperglycemia per 100 person years during simulated overnight closed-loop studies and during overnight open-loop studies;

Table 4 includes a list of documents to which reference is made by means of endnotes in the text above. Each of those documents listed in Table 4 is hereby incorporated by reference.

While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not to be limited to the disclosed embodiments and elements, but, to the contrary, is intended to cover various modifications, combinations of features, equivalent arrangements, and equivalent elements included within the spirit and scope of the appended claims.

TABLE 1 Gender Age BMI HbA1c Duration of diabetes Total daily insulin Study N (M/F) (years) (kg/m²) (%) (years) (U/kg/day) APCam01 12 7/5 13.1 ± 4.2 21.9 ± 4.3 8.7 ± 2.0 6.7 ± 4.5 0.89 ± 0.27 APCam03 9 3/6 14.4 ± 1.8 20.0 ± 2.2 7.8 ± 1.0 5.8 ± 3.0 0.93 ± 0.23

TABLE 2 FSN Calibration Error (%) Plasma glucose <45 45 50 55 60 70 80 90 100 ≦36 Any duration * 51 51 * 51 101 152 254 558 mg/dL ≦20 min * 51 * * * *  51  51 * 20-40 min * * 51 * 51 * * 101 304 >40 min * * * * * 101 101 101 254 *Severe hypoglycemia event not observed during 720 patient-night simulations for a corresponding level of FSN calibration error; incidence is less than 51 events per 100 person years.

TABLE 3 Simulated CL OL Plasma glucose (per 100 person years) (per 100 person years) ≦36 Any duration 0.75  1,739^(†) mg/dL ≦20 min 0.21 N/A 20-40 min 0.18 N/A >40 min 0.36 N/A ≦45 Any duration 17.11 3,479 mg/dL ≦60 min 15.36 1,739 60 to 90 min 1.07 1,739 90 to 120 min 0.43 * >120 min 0.25 * ≧300 Any duration 75.38 15,654  mg/dL ≦60 min 61.09 10,436  60 to 180 min 5.64 3,479 180 to 360 min 5.82 1,739 >360 min 2.82 *

TABLE 4 1. Klonoff D C. Continuous Glucose Monitoring: Roadmap for 21st century diabetes therapy. Diabetes Care 2005; 28(5): 1231-1239. 2. Pickup J C, Keen H, Parsons J A, Alberti K G. Continuous subcutaneous insulin infusion: an approach to achieving normoglycaemia. Br Med J 1978; 1(6107): 204-207. 3. Hovorka R. Continuous glucose monitoring and closed-loop systems. Diabetic Med 2006; 23(1): 1-12. 4. Steil G M, Rebrin K. Closed-loop insulin delivery - what lies between where we are and where we are going? Expert Opin Drug Deliv 2005; 2(2): 353-362. 5. Shalitin S, Phillip M. Closing the loop: combining insulin pumps and glucose sensors in children with type 1 diabetes mellitus. Pediatr Diabetes 2006; 7 Suppl 4: 45-49. 6. Rinard E, Costalat G, Chevassus H, Bringer J. Artificial beta-cell: clinical experience toward an implantable closed-loop insulin delivery system. Diabetes Metab 2006; 32(5 Pt 2): 497-502. 7. Hovorka R, Wilinska M E, Chassin L J, Dunger D B. Roadmap to the artificial pancreas. Diabetes Res Clin Pract 2006; 74 Suppl 2: S178- S182. 8. Hovorka R. The future of continuous glucose monitoring: closed loop. Curr Diabetes Rev 2008; 4(3): 269-279. 9. Panteleon A E, Loutseiko M, Steil G M, Rebrin K. Evaluation of the effect of gain on the meal response of an automated closed-loop insulin delivery system. Diabetes 2006; 55(7): 1995-2000. 10. Rebrin K, Fischer U, von Woedtke T, Abel P, Brunstein E. Automated feedback control of subcutaneous glucose concentration in diabetic dogs. Diabetologia 1989; 32(8): 573-576. 11. El-Khatib F H, Jiang J, Damiano E R. Adaptive closed-loop control provides blood-glucose regulation using dual subcutaneous insulin and glucagon infusion in diabetic swine. J Diabetes Sci Technol 2007; 1(2): 181-192. 12. Chassin L J, Wilinska M E, Hovorka R. Evaluation of glucose controllers in virtual environment: Methodology and sample application. Artif Intell Med 2004; 32(3): 171-181. 13. Hovorka R, Shojaee-Moradie F, Carroll P V at al. Partitioning glucose distribution/transport, disposal, and endogenous production during IVGTT. Am J Physiol 2002; 282: E992-E1007. 14. Hovorka R, Chassin L J, Wilinska M E et al. Closing the loop: The Adicol experience. Diabetes Technol Ther 2004; 6(3): 307-318. 15. Dalla M C, Raimondo D M, Rizza R A, Cobelli C. GIM, simulation software of meal glucose-insulin model. J Diabetes Sci Technol 2007; 1(3): 323-330. 16. Basu R, Dalla Man C, Campioni M et al. Effects of age and sex on postprandial glucose metabolism: differences in glucose turnover, insulin secretion, insulin action, and hepatic insulin extraction. Diabetes 2006; 55(7): 2001-2014. 17. Patek S D, Bequette B W, Breton M et al. In silico preclinical trials: Methodology and engineering guide to closed-loop control in type 1 diabetes mellitus. J Diabetes Sci Technol 2009; 3(2): 269-282. 18. Bequette B W. A critical assessment of algorithms and challenges in the development of a closed-loop artificial pancreas. Diabetes Technol Ther 2005; 7(1): 28-47. 19. Mazor E, Averbuch A, Bar-Shalom Y, Dayan J. Interacting multiple model methods in target tracking: A survey. Ieee Transactions on Aerospace and Electronic Systems 1998; 34(1): 103-123. 20. Hovorka R, Acerini C L, Allen J et al. Overnight sc-sc closed-loop control improves glucose control and reduces risk of hypoglycaemia in children and adolescents with type 1 diabetes. Diabetes 2008; 57 (Suppl 1): A22. 21. Hovorka R, Acerini C L, Allen J et al. Good overnight closed-loop glucose control in children and adolescents with type 1 diabetes following ingestion of large, rapidly and slowly absorbed evening meat. Diabetologia 2008; 51 (Suppl 1): 181. 22. Hovorka R, Acerini C L, Allen J M et al. Overnight closed-loop delivery following afternoon exercise in adolescents with type 1 diabetes (T1D). http://www.sessionplan.com/attd2009 (accessed 7 Mar. 2009). 23. Hovorka R, Canonico V, Chassin L J et al. Non-linear model predictive control of glucose concentration in subjects with type 1 diabetes. Physiol Meas 2004; 25(4): 905- 920. 24. Wilinska M E, Chassin L J, Schaller H C, Schaupp L, Pieber T R, Hovorka R. Insulin kinetics in type-1 diabetes: Continuous and bolus delivery of rapid acting insulin. IEEE Trans Biomed Eng 2005; 52(1): 3-12. 25. McGarraugh G, Bergenstal R. Detection of hypoglycemia with continuous interstitial and traditional blood glucose monitoring using the freeStyle navigator continuous glucose monitoring system. Diabetes Technol Ther 2009; 11(3): 145-150. 26. Weinstein R L, Schwartz S L, Brazg R L, Bugler J R, Peyser T A, McGarraugh G V. Accuracy of the 5-day FreeStyle Navigator Continuous Glucose Monitoring System: comparison with frequent laboratory reference measurements. Diabetes Care 2007; 30(5): 1125- 1130. 27. Cryer P E. The barrier of hypoglycemia in diabetes. Diabetes 2008; 57(12): 3169-3176. 28. Wilinska M E, Acerini C L, Allen J M, Chassin L J, Dunger D B, Hovorka R. Validation of simulation environment utilising clinical data collected during overnight closed-loop glucose control in children and adolescents with type 1 diabetes. Diabetes Technology Meeting, Washington DC 2008. 29. Kovatchev B P, Cox D J, Gonder-Frederick L A, Young-Hyman D, Schlundt D, Clarke W. Assessment of risk for severe hypoglycemia among adults with IDDM: validation of the low blood glucose index. Diabetes Care 1998; 21(11)1870-1875. 30. Tamborlane W V, Beck R W, Bode B W et al. Continuous glucose monitoring and intensive treatment of type 1. diabetes. N Engl J Med 2008; 359(14): 1464-1476. 31. Buckingham B, Wilson D M, Lecher T, Hanas R, Kaiserman K, Cameron F. Duration of nocturnal hypoglycemia before seizures. Diabetes Care 2008; 31(11): 2110-2112. 32. Kovatchev B, Anderson S, Heinemann L, Clarke W. Comparison of the numerical and clinical accuracy of four continuous glucose monitors. Diabetes Care 2008; 31(6): 1160-1164. 

We claim:
 1. A method for delivering insulin to a patient, the method comprising: sensing a glucose level and providing a glucose measurement signal representative of the sensed glucose; providing a control signal as a function of the glucose measurement signal in accordance with a control model and a glucose measurement error model, wherein the glucose measurement error model is derived from actual glucose sensor measurement data; and delivering insulin in response to the control signal.
 2. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived solely from actual glucose sensor measurement data.
 3. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived solely from actual glucose sensor error data, excluding sensor noise data.
 4. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived solely from actual glucose sensor measurement data to the exclusion of randomly-generated variable data.
 5. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived solely from a fixed time history of error data from actual use of a glucose sensor of the same type as the sensor of the system.
 6. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived from actual glucose sensor measurement data from a glucose sensor of the same type as the sensor of the system.
 7. The method for delivering insulin of claim 1, wherein the glucose measurement error model is derived solely from a fixed time history of error data from actual use of a glucose sensor of the same type as the sensor of the system, to the exclusion of randomly-generated variable data and to the exclusion of sensor noise data.
 8. The method for delivering insulin of claim 1, wherein providing the control signal further comprises producing the control signal in accordance with a model predictive control.
 9. The method for delivering insulin of claim 1, further comprising determining a calibration error of a glucose sensor from actual sensor data and deriving the glucose measurement error model therefrom.
 10. The method for delivering insulin of claim 9, wherein determining a calibration error comprises determining calibration error based on the difference between a plasma glucose level and the glucose level signal.
 11. The method for delivering insulin of claim 1, further comprising determining a glucose sensor dropout reading from actual sensor data and deriving the glucose measurement error model therefrom.
 12. The method for delivering insulin of claim 1, wherein providing the control signal is also a function of weight of a patient, a total daily insulin dose, and a basal insulin profile, the method further comprising: determining, based on the control model, at least one accepted value; calculating from the glucose level signal at least one inferred value; adjusting the control model in accordance with the accepted value and inferred value; and forecasting a future plasma glucose level excursion based on the control model.
 13. The method for delivering insulin of claim 12, wherein determining the accepted value comprises basing the determination on an insulin sensitivity of the patient, a glucose distribution volume, and an insulin distribution volume.
 14. The method for delivering insulin of claim 12, wherein calculating the inferred value comprises calculating the inferred value also from glucose flux and a carbohydrate bioavailability.
 15. The method for delivering insulin of claim 1, further comprising adjusting a value of the control signal in accordance with a safety check.
 16. The method for delivering insulin of claim 15 wherein adjusting a value of the control signal comprises at least one of: imposing a maximum infusion rate related to a basal rate depending on a current sensor glucose level, time since a previous meal, and carbohydrate content of a meal; shutting off insulin delivery at a predetermined low sensor glucose value; reducing insulin delivery when sensor glucose is decreasing rapidly; and capping the insulin infusion to a pre-programmed basal rate if an insulin delivery pump occlusion is inferred.
 17. The method for delivering insulin of claim 1, wherein sensing, providing a control signal, and delivering insulin are performed virtually, each occurring for in silico testing of a method for delivery of insulin to a virtual patient. 